{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import pandas as pd\n",
    "import matplotlib.pyplot as plt\n",
    "import sys\n",
    "from sklearn.model_selection import train_test_split\n",
    "sys.path.append(r'D:\\codeproject\\data-process')\n",
    "from data_deal.merger import singledetail_deal\n",
    "import datetime"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "\n",
    "#添加乳酸域计算\n",
    "test_record_df=pd.read_csv(r'D:\\学习&科研\\华为手表项目\\华为数据\\base-data\\室内试验数据utf8.csv')\n",
    "laandmaxhr=pd.read_csv(r'D:\\学习&科研\\华为手表项目\\华为数据\\base-data\\Processed_summary_Mod(2).csv')\n",
    "test_record_df = pd.merge(test_record_df, laandmaxhr, left_on='number', right_on='ID', how='left')\n",
    "del test_record_df['ID']\n",
    "del test_record_df['Gender']\n",
    "del test_record_df['HR_max']\n",
    "test_record_df.to_csv(r'D:\\学习&科研\\华为手表项目\\华为数据\\base-data\\室内实验数据最终.csv',index=False)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "MLandDL",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.20"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
